package qingke.pojo;

import java.util.ArrayList;
import java.util.List;

public class Order {
	private int id;
	private String createDateTime;
	private String memo;
	private int clientID;
	private String paymentStatus;
	private String paymentMethod;

	private List<Product> products;

	public Order() {

	}

	public Order(int id, String createDateTime, int clientID) {
		this.id = id;
		this.createDateTime = createDateTime;
		this.clientID = clientID;

		this.products = new ArrayList<>();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(String createDateTime) {
		this.createDateTime = createDateTime;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public int getClientID() {
		return clientID;
	}

	public void setClientID(int clientID) {
		this.clientID = clientID;
	}

	public String isPaymentStatus() {
		return paymentStatus;
	}

	public void setPaymentStatus(String paymentStatusID) {
		this.paymentStatus = paymentStatusID;
	}

	public String getPaymentMethod() {
		return paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}

	@Override
	public String toString() {
		return "Order [id=" + id + ", createDateTime=" + createDateTime + ", clientID=" + clientID + ", products=" + products.toString() + "]";
	}

}
